#
#    Copyright (c) 2006-02-27 Yazy<yazy@mail.csdn.net>
#

# compilier configs...
CXX		= g++
CXXFLAGS	= -g -ggdb -I../.. -DYISC_ENABLE_TEST_MACROS=1
COMPILE		:= $(CXX) $(CXXFLAGS) -c

# linker configs...
LD		:= $(CXX)
LDFLAGS		=
LINK		:= $(LD) $(LDFLAGS)

# "rm" command:
RM		= rm -f

# dependancies
LIBS		=

# configs about sources...
SRC_EXT		= cpp
HDR_EXT		= hpp
OBJ_EXT		= o
SRCS		:= $(wildcard *.$(SRC_EXT)) $(wildcard ../../test/*.$(SRC_EXT))
HDRS		:= $(SRCS:.$(SRC_EXT)=.$(HDR_EXT))
OBJS		:= $(SRCS:.$(SRC_EXT)=.$(OBJ_EXT))
MORE_HDRS	=

# targets...
TARGET		= testPattern.exe

.PHONY: all clean

all:$(TARGET)
$(TARGET):$(OBJS)
	echo $(SRCS)
	$(LINK) $^ -o $@ $(LIBS)

$(OBJS):%.o:%.$(SRC_EXT) %.$(HDR_EXT)
	$(COMPILE) $< -o $@ 


clean:
	$(RM) $(OBJS) $(TARGET)


